package com.tarena.dang.actions.cart;

import com.tarena.dang.actions.BaseAction;
import com.tarena.dang.services.CartFactory;
import com.tarena.dang.services.CartService;

public class DeleteAction extends BaseAction {
	private int pid;

	public String execute() {
		CartService cart = CartFactory.getCart(session);
		cart.delete(pid);
		return "success";
	}

	public int getPid() {
		return pid;
	}

	public void setPid(int pid) {
		this.pid = pid;
	}
}
